INCLUDE( ${ARCH}/CMakeLists.txt )

ADD_EXECUTABLE(brain Console.cpp
			Cpu.cpp
			EventController.cpp
			IModule.cpp
			ivec.cpp
			Jvm.cpp
			kmm.cpp
			Llvm.cpp
			main.cpp
			MemFactory.cpp
			MemReader.cpp
			MemTypes.cpp
			Object.cpp
			PageFactory.cpp
			Platform.cpp
			Scheduler.cpp
			string.cpp
			SysCalls.cpp
			Task.cpp
			TaskFactory.cpp
			VmMap.cpp
			${ARCH_SOURCES}
)

TARGET_LINK_LIBRARIES(brain gcc)
SET_TARGET_PROPERTIES(brain PROPERTIES LINK_FLAGS "-Wl,-b,elf32-i386 -Wl,-m,elf_i386 -Wl,-T,${CMAKE_CURRENT_SOURCE_DIR}/${ARCH}/kernel.lds")
